cosh
Hyperbolic cosine
cosh()
function returns the hyperbolic cosine of a number.
In this example, we will return hyperbolic cosines of different numbers:
<?php echo ( cosh ( 3 ) ; echo ( cosh ( - 3 ) ; echo ( cosh ( 0 ) ; echo ( cosh ( M_PI ) ; echo ( cosh ( 2 * M_PI ) ) ; ?>
Try it yourself
cosh ( x )
parameter | describe |
---|---|
x | Required. A number. |
Returns the hyperbolic cosine value of x , defined as (exp(arg) + exp(-arg))/2
.